package com.xhb.campusservices.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 任务发布状态
 */
@Getter
public enum TaskState {
/*    PUBLISHED(0,"已发布"),
    UNPUBLISHED(1,"未发布"),
    HAVE_ORDER(2,"已被接单");*/
    已发布(0,"已发布"),
    未发布(1,"未发布"),
    已被接单(2,"已被接单"),
    已删除(3,"已删除");
    @EnumValue
    private Integer state;
    private String stateName;

    TaskState(Integer state, String stateName) {
        this.state = state;
        this.stateName = stateName;
    }
}
